<?php
/* @var $this UsersController */
/* @var $model Users */
/* @var $form CActiveForm */
?>

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'users-form',
	'enableAjaxValidation'=>false,
    'htmlOptions'=>array('class' => 'form uniformForm validateForm'),
)); ?>

  <?php if ($form->errorSummary($model)) :?>
  <div class="notify notify-error">
    <a href="javascript:;" class="close">×</a>
    <?php echo $form->errorSummary($model); ?>
  </div>
  <?php endif; ?>

	<div class="field-group">
		<?php echo $form->labelEx($model,'mobile'); ?>
		<div class="field">
		<?php echo $form->textField($model,'mobile'); ?>
		</div>
	</div>

	<div class="field-group">
		<?php echo $form->labelEx($model,'serial_num'); ?>
		<div class="field">
		<?php echo $form->textField($model,'serial_num',array('size'=>60,'maxlength'=>128)); ?>
		</div>
	</div>

	<div class="field-group">
		<?php echo $form->labelEx($model,'command'); ?>
		<div class="field">
		<?php echo $form->textField($model,'command',array('size'=>60,'maxlength'=>128)); ?>
		</div>
	</div>

	<div class="field-group">
		<?php echo $form->labelEx($model,'switchboard'); ?>
		<div class="field">
		<?php echo $form->textField($model,'switchboard',array('size'=>60,'maxlength'=>128)); ?>
		</div>
	</div>

	<div class="field-group">
		<?php echo $form->labelEx($model,'create_date'); ?>
		<div class="field">
		<?php echo $form->textField($model,'create_date'); ?>
		</div>
	</div>

	<div class="field-group">
    <button class="btn btn-small btn-success" type="submit">
       <span class="icon-check"></span><?php echo Yii::t('main', 'button.ok'); ?>
    </button>
    <a href="<?php echo Yii::app()->createUrl('admin/users/list', $_GET); ?>">
    <button class="btn btn-small btn-warning" type="button">
       <span class="icon-x"></span><?php echo Yii::t('main', 'button.cancel'); ?>
    </button>
    </a>
	</div>

<?php $this->endWidget(); ?>